Strict
Import mojo


Import math
Import bounding
Import corematerial
Import coresubmesh
Import coremesh
Import corebone
Import coreskeleton
Import coremodel
Import coresubmorphtarget
Import coremorphanimation
Import corekeyframe
Import coretrack
Import coreanimation
Import submesh
Import mesh
Import bone
Import skeleton
Import model
Import animation
Import mixer
Import morphtargetmixer
Import physique
Import springsystem
Import renderer
Import loader
Import calimage


Class DeltaTimer
	
	Field targetfps:Float = 60
	Field currentticks:Float
	Field lastticks:Float
	Field frametime:Float
	Field delta:Float
	
	Method New (fps:Float)
		targetfps = fps
		lastticks = Millisecs()
	End
	
	Method UpdateDelta:Void ()
		currentticks = Millisecs()
		frametime = currentticks - lastticks
		delta = frametime / (1000.0 / targetfps)
		lastticks = currentticks
	End
	
End